Trying to sort services by updated_at key

Trying to sort the list of services based on updated_at time but getting error as follow:

API documentation: https://developer.pagerduty.com/api-reference/reference/REST/openapiv3.json/paths/~1services/get

URL: https://api.pagerduty.com/services?sort_by=updated_at
{
“error”: {
“message”: “Invalid Input Provided”,
“code”: 2001,
“errors”: [
“Sort by must be in name, name:asc, or name:desc.”
]
}
}

#same API works fine for name param

Can someone help me with this?

Regards,
Adarsh Tiwari

The API only supports returning the results sorted by name and no other field. You’ll need to do that externally, for example in a CSV or spreadsheet.